#include "OperationItem.h"

int OperationItem::_total;

OperationItem::OperationItem(GraphScene *scene) : GraphNodeItem(scene)
{
	++_total;
	this->setPlainText(QString("Operation%1").arg(_total));
}

QPainterPath OperationItem::shape() const
{
	QPainterPath path;
	const int radius = 15;
	path.addRoundedRect(boundingRect(), radius, radius);
	return path;
}